package com.baidu.day06;

public class Demo03 {
    public static void main(String[] args) {
        Cat cat = new Cat();
        cat.setName("小猫");
        cat.setAge(2);
        Dog dog = new Dog();

        dog.setName("小狗");
        //set是设置 get是获取 得到一个返回值 根据设置的用string获取
        String dogName = dog.getName();
        System.out.println(dogName);
        dog.setAge(3);
        dog.shout();

    }
}
